﻿@using Microsoft.AspNet.Identity
@using Digital.WCFClient
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="images/favicon.png" type="image/png">

    <title>微距平台会员管理</title>

    <link href="../DigitalStyle/css/style.default.css" rel="stylesheet">
    <link href="../DigitalStyle/css/jquery.datatables.css" rel="stylesheet">
    <script language="javascript" type="text/javascript" src="../DigitalStyle/js/jquery-1.10.2.min.js"></script>
    <script language="javascript" type="text/javascript" src="../DigitalStyle/js/jquery-migrate-1.2.1.min.js"></script>
    <script language="javascript" type="text/javascript" src="../DigitalStyle/js/jquery-ui-1.10.3.min.js"></script>
    <script language="javascript" type="text/javascript" src="../DigitalStyle/js/bootstrap.min.js"></script>
    <script language="javascript" type="text/javascript" src="../DigitalStyle/js/modernizr.min.js"></script>
    <script language="javascript" type="text/javascript" src="../DigitalStyle/js/jquery.sparkline.min.js"></script>
    <script language="javascript" type="text/javascript" src="../DigitalStyle/js/toggles.min.js"></script>
    <script language="javascript" type="text/javascript" src="../DigitalStyle/js/retina.min.js"></script>
    <script language="javascript" type="text/javascript" src="../DigitalStyle/js/jquery.cookies.js"></script>

    <script language="javascript" type="text/javascript" src="../DigitalStyle/js/flot/flot.min.js"></script>
    <script language="javascript" type="text/javascript" src="../DigitalStyle/js/flot/flot.resize.min.js"></script>
    <script language="javascript" type="text/javascript" src="../DigitalStyle/js/morris.min.js"></script>
    <script language="javascript" type="text/javascript" src="../DigitalStyle/js/raphael-2.1.0.min.js"></script>

    <script language="javascript" type="text/javascript" src="../DigitalStyle/js/jquery.datatables.min.js"></script>
    <script language="javascript" type="text/javascript" src="../DigitalStyle/js/chosen.jquery.min.js"></script>

    <script language="javascript" type="text/javascript" src="../DigitalStyle/js/custom.js" charset="gbk"></script>
    <script language="javascript" type="text/javascript" >
        var staticFileRoot = "@Url.StaticFile()";
    </script>
    @RenderSection("PageSpecificJavascriptIncludes", required: false)
    <style>
        #dropZone {
            background: gray;
            border: black dashed 3px;
            width: 200px;
            padding: 50px;
            text-align: center;
            color: white;
        }
    </style>

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="js/html5shiv.js" tppabs="http://themepixels.com/demo/webpage/bracket/js/html5shiv.js"></script>
    <script src="js/respond.min.js" tppabs="http://themepixels.com/demo/webpage/bracket/js/respond.min.js"></script>
    <![endif]-->
</head>

<body>
        @{
        var UserModel = Digital.Web.Controllers.OperatorFactory.GetUser(User.Identity.GetUserId());
    System.Collections.ObjectModel.ObservableCollection<Digital.WCFClient.ConfigService.MenuModel> MenuList = new System.Collections.ObjectModel.ObservableCollection<Digital.WCFClient.ConfigService.MenuModel>();
        if (UserModel != null)
        {

            //var MenuList = Digital.Web.Controllers.OperatorFactory.GetCache<System.Collections.ObjectModel.ObservableCollection<Digital.WCFClient.ConfigService.MenuModel>>("Menu");
            var CommonRigthList = Digital.Web.Controllers.OperatorFactory.GetCache<System.Collections.ObjectModel.ObservableCollection<Digital.WCFClient.ConfigService.CommonRightModel>>("CommonRight");
            if (CommonRigthList == null)
            {
                var client = ServiceHub.GetCommonServiceClient<Digital.WCFClient.ConfigService.ConfigServiceClient>();
                var CommonRigthModelList = client.GetCommonRightList();
                client.Close();
                Digital.Web.Controllers.OperatorFactory.InsertCache<System.Collections.ObjectModel.ObservableCollection<Digital.WCFClient.ConfigService.CommonRightModel>>(CommonRigthModelList, "CommonRight");
            }

            if (UserModel.CompanyID == null)
            {
                MenuList = CommonRigthList.Where(o => o.ID == 1).FirstOrDefault().MenuModels;
            }
            else
            {
                MenuList = CommonRigthList.Where(o => o.ID == 2).FirstOrDefault().MenuModels;
            }
        }
        else
        {
            Response.Redirect(@Url.StaticFile());
        }

    }
    <!-- Preloader -->
    <div id="preloader">
        <div id="status"><i class="fa fa-spinner fa-spin"></i></div>
    </div>

    <section>

        <div class="leftpanel">

            <div class="logopanel">
                <h1><span>[</span> 微距平台 <span>]</span></h1>
            </div><!-- logopanel -->

            <div class="leftpanelinner">

                <!-- This is only visible to small devices -->
                <div class="visible-xs hidden-sm hidden-md hidden-lg">
                    <div class="media userlogged">
                        <img alt="" src="../DigitalStyle/images/photos/loggeduser.png" class="media-object">
                        <div class="media-body">
                            <h4>用户名</h4>
                            <span>"签名详细"</span>
                        </div>
                    </div>

                    <h5 class="sidebartitle actitle">账 户</h5>
                    <ul class="nav nav-pills nav-stacked nav-bracket mb30">
                        <li><a href="profile.html"><i class="fa fa-user"></i> <span>用 户</span></a></li>
                        <li><a href=""><i class="fa fa-cog"></i> <span>账户设置</span></a></li>
                        <li><a href=""><i class="fa fa-question-circle"></i> <span>帮 助</span></a></li>
                        <li><a href="signout.html"><i class="fa fa-sign-out"></i> <span>登 出</span></a></li>
                    </ul>
                </div>

                <h5 class="sidebartitle">导 航</h5>
                <ul class="nav nav-pills nav-stacked nav-bracket">
                    @{
                        foreach (var MenuModel in MenuList)
                        {
                            if (MenuModel.ID == MenuModel.ParentId)
                            {
                                var StyleClass = string.Empty;
                                var UlDisplay = string.Empty;
                                if (MenuModel.ID == ((Digital.WCFClient.ConfigService.MenuModel)ViewBag.MenuModel).ParentId)
                                {
                                    StyleClass = "nav-parent nav-active active";
                                    UlDisplay="style=\"display:block\"";
                                }
                                else
                                {
                                    StyleClass = "nav-parent";
                                }
                        <li class="@StyleClass">
                            <a href=""><i class="@MenuModel.Style"></i> <span>@MenuModel.MenuName</span></a>
                            <ul class="children" @Html.Raw(UlDisplay)>
                                @{
                                foreach (var SubModel in MenuList.Where(o => o.ParentId == MenuModel.ID&&o.ID!=MenuModel.ID))
                                {
                                    var SubStyleClass = string.Empty;
                                    if (SubModel.ID == ((Digital.WCFClient.ConfigService.MenuModel)ViewBag.MenuModel).ID)
                                    {
                                        SubStyleClass = "class=\"active\"";
                                    }
                                    <li @Html.Raw(SubStyleClass)><a href="@SubModel.Url"><i class="@SubModel.Style"></i> @SubModel.MenuName</a></li>
                                }
                                }
                            </ul>
                        </li>
                            }
                        }
                    }

                </ul>

            </div><!-- leftpanelinner -->
        </div><!-- leftpanel -->

        <div class="mainpanel">

            <div class="headerbar">

                <a class="menutoggle"><i class="fa fa-bars"></i></a>

                <form class="searchform" action="http://themepixels.com/demo/webpage/bracket/index.html" method="post">
                    <input type="text" class="form-control" name="keyword" placeholder="Search here..." />
                </form>

                <div class="header-right">
                    <ul class="headermenu">
                        <li>
                            <div class="btn-group">
                                <button class="btn btn-default dropdown-toggle tp-icon" data-toggle="dropdown">
                                    <i class="glyphicon glyphicon-user"></i>
                                    <span class="badge">2</span>
                                </button>
                                <div class="dropdown-menu dropdown-menu-head pull-right">
                                    <h5 class="title">2 Newly Registered Users</h5>
                                    <ul class="dropdown-list user-list">
                                        <li class="new">
                                            <div class="thumb"><a href=""><img src="images/photos/user1.png" tppabs="http://themepixels.com/demo/webpage/bracket/images/photos/user1.png" alt="" /></a></div>
                                            <div class="desc">
                                                <h5><a href="">Draniem Daamul (draniem)</a> <span class="badge badge-success">new</span></h5>
                                            </div>
                                        </li>
                                        <li class="new">
                                            <div class="thumb"><a href=""><img src="images/photos/user2.png" tppabs="http://themepixels.com/demo/webpage/bracket/images/photos/user2.png" alt="" /></a></div>
                                            <div class="desc">
                                                <h5><a href="">Zaham Sindilmaca (zaham)</a> <span class="badge badge-success">new</span></h5>
                                            </div>
                                        </li>
                                        <li>
                                            <div class="thumb"><a href=""><img src="images/photos/user3.png" tppabs="http://themepixels.com/demo/webpage/bracket/images/photos/user3.png" alt="" /></a></div>
                                            <div class="desc">
                                                <h5><a href="">Weno Carasbong (wenocar)</a></h5>
                                            </div>
                                        </li>
                                        <li>
                                            <div class="thumb"><a href=""><img src="images/photos/user4.png" tppabs="http://themepixels.com/demo/webpage/bracket/images/photos/user4.png" alt="" /></a></div>
                                            <div class="desc">
                                                <h5><a href="">Nusja Nawancali (nusja)</a></h5>
                                            </div>
                                        </li>
                                        <li>
                                            <div class="thumb"><a href=""><img src="images/photos/user5.png" tppabs="http://themepixels.com/demo/webpage/bracket/images/photos/user5.png" alt="" /></a></div>
                                            <div class="desc">
                                                <h5><a href="">Lane Kitmari (lane_kitmare)</a></h5>
                                            </div>
                                        </li>
                                        <li class="new"><a href="">See All Users</a></li>
                                    </ul>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="btn-group">
                                <button class="btn btn-default dropdown-toggle tp-icon" data-toggle="dropdown">
                                    <i class="glyphicon glyphicon-envelope"></i>
                                    <span class="badge">1</span>
                                </button>
                                <div class="dropdown-menu dropdown-menu-head pull-right">
                                    <h5 class="title">You Have 1 New Message</h5>
                                    <ul class="dropdown-list gen-list">
                                        <li class="new">
                                            <a href="">
                                                <span class="thumb"><img src="images/photos/user1.png" tppabs="http://themepixels.com/demo/webpage/bracket/images/photos/user1.png" alt="" /></span>
                                                <span class="desc">
                                                    <span class="name">Draniem Daamul <span class="badge badge-success">new</span></span>
                                                    <span class="msg">Lorem ipsum dolor sit amet...</span>
                                                </span>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="">
                                                <span class="thumb"><img src="images/photos/user2.png" tppabs="http://themepixels.com/demo/webpage/bracket/images/photos/user2.png" alt="" /></span>
                                                <span class="desc">
                                                    <span class="name">Nusja Nawancali</span>
                                                    <span class="msg">Lorem ipsum dolor sit amet...</span>
                                                </span>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="">
                                                <span class="thumb"><img src="images/photos/user3.png" tppabs="http://themepixels.com/demo/webpage/bracket/images/photos/user3.png" alt="" /></span>
                                                <span class="desc">
                                                    <span class="name">Weno Carasbong</span>
                                                    <span class="msg">Lorem ipsum dolor sit amet...</span>
                                                </span>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="">
                                                <span class="thumb"><img src="images/photos/user4.png" tppabs="http://themepixels.com/demo/webpage/bracket/images/photos/user4.png" alt="" /></span>
                                                <span class="desc">
                                                    <span class="name">Zaham Sindilmaca</span>
                                                    <span class="msg">Lorem ipsum dolor sit amet...</span>
                                                </span>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="">
                                                <span class="thumb"><img src="images/photos/user5.png" tppabs="http://themepixels.com/demo/webpage/bracket/images/photos/user5.png" alt="" /></span>
                                                <span class="desc">
                                                    <span class="name">Veno Leongal</span>
                                                    <span class="msg">Lorem ipsum dolor sit amet...</span>
                                                </span>
                                            </a>
                                        </li>
                                        <li class="new"><a href="">Read All Messages</a></li>
                                    </ul>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="btn-group">
                                <button class="btn btn-default dropdown-toggle tp-icon" data-toggle="dropdown">
                                    <i class="glyphicon glyphicon-globe"></i>
                                    <span class="badge">5</span>
                                </button>
                                <div class="dropdown-menu dropdown-menu-head pull-right">
                                    <h5 class="title">You Have 5 New Notifications</h5>
                                    <ul class="dropdown-list gen-list">
                                        <li class="new">
                                            <a href="">
                                                <span class="thumb"><img src="images/photos/user4.png" tppabs="http://themepixels.com/demo/webpage/bracket/images/photos/user4.png" alt="" /></span>
                                                <span class="desc">
                                                    <span class="name">Zaham Sindilmaca <span class="badge badge-success">new</span></span>
                                                    <span class="msg">is now following you</span>
                                                </span>
                                            </a>
                                        </li>
                                        <li class="new">
                                            <a href="">
                                                <span class="thumb"><img src="images/photos/user5.png" tppabs="http://themepixels.com/demo/webpage/bracket/images/photos/user5.png" alt="" /></span>
                                                <span class="desc">
                                                    <span class="name">Weno Carasbong <span class="badge badge-success">new</span></span>
                                                    <span class="msg">is now following you</span>
                                                </span>
                                            </a>
                                        </li>
                                        <li class="new">
                                            <a href="">
                                                <span class="thumb"><img src="images/photos/user3.png" tppabs="http://themepixels.com/demo/webpage/bracket/images/photos/user3.png" alt="" /></span>
                                                <span class="desc">
                                                    <span class="name">Veno Leongal <span class="badge badge-success">new</span></span>
                                                    <span class="msg">likes your recent status</span>
                                                </span>
                                            </a>
                                        </li>
                                        <li class="new">
                                            <a href="">
                                                <span class="thumb"><img src="images/photos/user3.png" tppabs="http://themepixels.com/demo/webpage/bracket/images/photos/user3.png" alt="" /></span>
                                                <span class="desc">
                                                    <span class="name">Nusja Nawancali <span class="badge badge-success">new</span></span>
                                                    <span class="msg">downloaded your work</span>
                                                </span>
                                            </a>
                                        </li>
                                        <li class="new">
                                            <a href="">
                                                <span class="thumb"><img src="images/photos/user3.png" tppabs="http://themepixels.com/demo/webpage/bracket/images/photos/user3.png" alt="" /></span>
                                                <span class="desc">
                                                    <span class="name">Nusja Nawancali <span class="badge badge-success">new</span></span>
                                                    <span class="msg">send you 2 messages</span>
                                                </span>
                                            </a>
                                        </li>
                                        <li class="new"><a href="">See All Notifications</a></li>
                                    </ul>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="btn-group">
                                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                                    <img src="../DigitalStyle/images/photos/loggeduser.png" alt="" />
                                    John Doe
                                    <span class="caret"></span>
                                </button>
                                <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                                    <li><a href="profile.html"><i class="glyphicon glyphicon-user"></i> My Profile</a></li>
                                    <li><a href="#"><i class="glyphicon glyphicon-cog"></i> Account Settings</a></li>
                                    <li><a href="#"><i class="glyphicon glyphicon-question-sign"></i> Help</a></li>
                                    <li><a href="signin.html"><i class="glyphicon glyphicon-log-out"></i> Log Out</a></li>
                                </ul>
                            </div>
                        </li>
                        <li>
                            <button id="chatview" class="btn btn-default tp-icon chat-icon">
                                <i class="glyphicon glyphicon-comment"></i>
                            </button>
                        </li>
                    </ul>
                </div><!-- header-right -->

            </div><!-- headerbar -->
            @RenderBody()

        </div><!-- mainpanel -->

        <div class="rightpanel">
            <!-- Nav tabs -->
            <ul class="nav nav-tabs nav-justified">
                <li class="active"><a href="#rp-alluser" data-toggle="tab"><i class="fa fa-users"></i></a></li>
                <li><a href="#rp-favorites" data-toggle="tab"><i class="fa fa-heart"></i></a></li>
                <li><a href="#rp-history" data-toggle="tab"><i class="fa fa-clock-o"></i></a></li>
                <li><a href="#rp-settings" data-toggle="tab"><i class="fa fa-gear"></i></a></li>
            </ul>

            <!-- Tab panes -->
            <div class="tab-content">
                <div class="tab-pane active" id="rp-alluser">
                    <h5 class="sidebartitle">在线好友</h5>
                    <ul class="chatuserlist">
                        <li class="online">
                            <div class="media">
                                <a href="#" class="pull-left media-thumb">
                                    <img alt="" src="images/photos/userprofile.png" class="media-object">
                                </a>
                                <div class="media-body">
                                    <strong>Eileen Sideways</strong>
                                    <small>Los Angeles, CA</small>
                                </div>
                            </div><!-- media -->
                        </li>
                        <li class="online">
                            <div class="media">
                                <a href="#" class="pull-left media-thumb">
                                    <img alt="" src="images/photos/user1.png" class="media-object">
                                </a>
                                <div class="media-body">
                                    <span class="pull-right badge badge-danger">2</span>
                                    <strong>Zaham Sindilmaca</strong>
                                    <small>San Francisco, CA</small>
                                </div>
                            </div><!-- media -->
                        </li>
                    </ul>

                    <div class="mb30"></div>

                    <h5 class="sidebartitle">离线好友</h5>
                    <ul class="chatuserlist">
                        <li>
                            <div class="media">
                                <a href="#" class="pull-left media-thumb">
                                    <img alt="" src="images/photos/user5.png" class="media-object">
                                </a>
                                <div class="media-body">
                                    <strong>Eileen Sideways</strong>
                                    <small>Los Angeles, CA</small>
                                </div>
                            </div><!-- media -->
                        </li>
                        <li>
                            <div class="media">
                                <a href="#" class="pull-left media-thumb">
                                    <img alt="" src="images/photos/user2.png" class="media-object">
                                </a>
                                <div class="media-body">
                                    <strong>Zaham Sindilmaca</strong>
                                    <small>San Francisco, CA</small>
                                </div>
                            </div><!-- media -->
                        </li>
                        <li>
                            <div class="media">
                                <a href="#" class="pull-left media-thumb">
                                    <img alt="" src="images/photos/user3.png" class="media-object">
                                </a>
                                <div class="media-body">
                                    <strong>Nusja Nawancali</strong>
                                    <small>Bangkok, Thailand</small>
                                </div>
                            </div><!-- media -->
                        </li>
                        <li>
                            <div class="media">
                                <a href="#" class="pull-left media-thumb">
                                    <img alt="" src="images/photos/user4.png" class="media-object">
                                </a>
                                <div class="media-body">
                                    <strong>Renov Leongal</strong>
                                    <small>Cebu City, Philippines</small>
                                </div>
                            </div><!-- media -->
                        </li>
                        <li>
                            <div class="media">
                                <a href="#" class="pull-left media-thumb">
                                    <img alt="" src="images/photos/user5.png" class="media-object">
                                </a>
                                <div class="media-body">
                                    <strong>Weno Carasbong</strong>
                                    <small>Tokyo, Japan</small>
                                </div>
                            </div><!-- media -->
                        </li>
                        <li>
                            <div class="media">
                                <a href="#" class="pull-left media-thumb">
                                    <img alt="" src="images/photos/user4.png" class="media-object">
                                </a>
                                <div class="media-body">
                                    <strong>Renov Leongal</strong>
                                    <small>Cebu City, Philippines</small>
                                </div>
                            </div><!-- media -->
                        </li>

                    </ul>
                </div>
                <div class="tab-pane" id="rp-favorites">
                    <h5 class="sidebartitle">我的收藏</h5>
                    <ul class="chatuserlist">
                        <li class="online">
                            <div class="media">
                                <a href="#" class="pull-left media-thumb">
                                    <img alt="" src="images/photos/user2.png" class="media-object">
                                </a>
                                <div class="media-body">
                                    <strong>Eileen Sideways</strong>
                                    <small>Los Angeles, CA</small>
                                </div>
                            </div><!-- media -->
                        </li>
                        <li>
                            <div class="media">
                                <a href="#" class="pull-left media-thumb">
                                    <img alt="" src="images/photos/user1.png" class="media-object">
                                </a>
                                <div class="media-body">
                                    <strong>Zaham Sindilmaca</strong>
                                    <small>San Francisco, CA</small>
                                </div>
                            </div><!-- media -->
                        </li>
                        <li>
                            <div class="media">
                                <a href="#" class="pull-left media-thumb">
                                    <img alt="" src="images/photos/user3.png" class="media-object">
                                </a>
                                <div class="media-body">
                                    <strong>Nusja Nawancali</strong>
                                    <small>Bangkok, Thailand</small>
                                </div>
                            </div><!-- media -->
                        </li>
                        <li class="online">
                            <div class="media">
                                <a href="#" class="pull-left media-thumb">
                                    <img alt="" src="images/photos/user4.png" class="media-object">
                                </a>
                                <div class="media-body">
                                    <strong>Renov Leongal</strong>
                                    <small>Cebu City, Philippines</small>
                                </div>
                            </div><!-- media -->
                        </li>

                    </ul>
                </div>
                <div class="tab-pane" id="rp-history">
                    <h5 class="sidebartitle">历史记录</h5>
                    <ul class="chatuserlist">
                        <li class="online">
                            <div class="media">
                                <a href="#" class="pull-left media-thumb">
                                    <img alt="" src="images/photos/user4.png" class="media-object">
                                </a>
                                <div class="media-body">
                                    <strong>Eileen Sideways</strong>
                                    <small>Hi hello, ctc?... would you mind if I go to your...</small>
                                </div>
                            </div><!-- media -->
                        </li>
                        <li>
                            <div class="media">
                                <a href="#" class="pull-left media-thumb">
                                    <img alt="" src="images/photos/user2.png" class="media-object">
                                </a>
                                <div class="media-body">
                                    <strong>Zaham Sindilmaca</strong>
                                    <small>This is to inform you that your product that we...</small>
                                </div>
                            </div><!-- media -->
                        </li>
                        <li>
                            <div class="media">
                                <a href="#" class="pull-left media-thumb">
                                    <img alt="" src="images/photos/user3.png" class="media-object">
                                </a>
                                <div class="media-body">
                                    <strong>Nusja Nawancali</strong>
                                    <small>Are you willing to have a long term relat...</small>
                                </div>
                            </div><!-- media -->
                        </li>
                    </ul>
                </div>
                <div class="tab-pane pane-settings" id="rp-settings">

                    <h5 class="sidebartitle mb20">设 置</h5>
                    <div class="form-group">
                        <label class="col-xs-8 control-label">显示离线好友</label>
                        <div class="col-xs-4 control-label">
                            <div class="toggle toggle-success"></div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-xs-8 control-label">开启历史记录</label>
                        <div class="col-xs-4 control-label">
                            <div class="toggle toggle-success"></div>
                        </div>
                    </div>

                </div><!-- tab-pane -->

            </div><!-- tab-content -->
        </div><!-- rightpanel -->


    </section>



    @*<script src="../DigitalStyle/js/dashboard.js"></script>*@

</body>
</html>
